/**
 * listView 设置listView内容
 */
$.fn.setListViewContent = function (infoId,memo1,memo2,memo3,memo4,memo5,memo6) {
	var listView = this;
	var theme = listView.attr('data-listView-theme') ? listView.attr('data-listView-theme').toLowerCase() : 'a';
	var isPic = listView.attr('data-pic-show') ? listView.attr('data-pic-show') : 'false';
	var clzss = listView.attr('data-class') ? listView.attr('data-class') : 'listView'+listView.attr('id')+'Click';
	var href = listView.attr('data-href') ? listView.attr('data-href') : '#href';
	
	
	memo1 = memo1 || '';
	memo2 = memo2 || '';
	memo3 = memo3 || '';
	memo4 = memo4 || '';
	memo5 = memo5 || '';
	memo6 = memo6 || '';
	
	var contenthtml;
	switch(theme){
		case 'a':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				+ '<img src="'+purl+'"/>'	
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<P class="listViewTitle-'+theme+'">'+memo2+'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo5 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo6 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF"  href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<P class="listViewTitle-NP-'+theme+'">'+memo1+'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo5 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
		case 'b':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				+ '<img src="'+purl+'"/>'	
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<p class="listViewMemo-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo5 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<P class="listViewMemo-NP-'+theme+'">'+memo1+'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo4 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
		case 'c':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				+ '<img src="'+purl+'"/>'	
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<P class="listViewTitle-'+theme+'">'+memo2+'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo5 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo6 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<P class="listViewTitle-NP-'+theme+'">'+memo1+'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo5 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
		case 'd':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				//+ '<a href="#pop" data-rel="popup" data-position-to="window" id="'+infoId+'" class="extendimg" data-transition="fade">'
				+ '<img id="'+infoId+'_img" src="'+purl+'"/>'
				//+ '</a>'
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<p class="listViewMemo-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo3 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo1 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo2 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
		case 'e':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				+ '<img src="'+purl+'"/>'	
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<P class="listViewTitle-'+theme+'">'+memo2+'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo5 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo6 +'</p>'
				+ '</div></a>'
				+ '<div class="listViewSelect-'+theme+'"><input width="20px" height="20px" type="checkbox" name="favcolor" id="'+infoId+'_check" value="red"/></div></div>';
				contenthtml+='</li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<P class="listViewTitle-NP-'+theme+'">'+memo1+'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo5 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
		case 'f':
			if(isPic=='true'){
				var purl = memo1;// 没有上传图片
				if (purl == undefined || purl == "") {
					purl = "img/nopicture.png";
				}
				purl = window.rootPath + "/" + purl;
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewImg-'+theme+'">'
				+ '<img src="'+purl+'"/>'	
				+ '</div>'
				+ '<div class="listViewContent-'+theme+'">'
				+ '<P class="listViewTitle-'+theme+'">'+memo2+'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewMemo-'+theme+'">'+ memo4 +'</p>'
				+ '<p class="listViewFoot-'+theme+'">'+ memo5 +'</p>'
				+ '</div></a>'
				contenthtml+='</li>';
			}else{
				contenthtml='<li><a style="background-color:#FFFFFF" href="'+href+'" data-transition="slide" class="'+clzss+'" defineId="'+infoId+'" id="'+infoId+'">'
				+ '<div class="listViewContent-NP-'+theme+'">'
				+ '<P class="listViewTitle-NP-'+theme+'">'+memo1+'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo2 +'</p>'
				+ '<p class="listViewMemo-NP-'+theme+'">'+ memo3 +'</p>'
				+ '<p class="listViewFoot-NP-'+theme+'">'+ memo4 +'</p>'
				+ '</div>';
				contenthtml+='</a></li>';
			}
			break;
	}
	listView.append(contenthtml);
	listView.listview('refresh');
	$(".ui-btn-icon-right").removeClass("ui-btn-icon-right");
};